export default class mangaDataItem {
  constructor(title: string, cover: string, desc: string, comicId: string) {
    this.cover = cover;
    this.title = title;
    this.desc = desc;
    this.comicId = comicId;
  }

  private _title: string;

  public get title() {
    return this._title;
  }

  public set title(title: string) {
    this._title = title;
  }

  private _comicId: string;

  public get comicId() {
    return this._comicId;
  }

  public set comicId(comicId: string) {
    this._comicId = comicId;
  }

  private _cover: string;

  public get cover() {
    return this._cover;
  }

  public set cover(cover: string) {
    this._cover = cover;
  }

  private _desc: string;

  public get desc() {
    return this._desc;
  }

  public set desc(desc: string) {
    this._desc = desc;
  }

  public toValuesBucket() {
    return {
      'title': this.title,
      'cover': this.cover,
      'describe': this.desc,
      'comicId': this.comicId
    };
  }
}